home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
borland
/
bc30p2.zip
/
PATINIT.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-02-05
|
1KB
|
68 lines
echo OFF
echo
echo This batch file will fix the problem with initializing variables in
echo an initializer list, for BC, BCC, and TCW.
echo
echo You must be on the directory where BC, BCC and TCW reside in order
echo run this batch file successfully. The PATCH.COM file provided with
echo this patch package should also reside on this directory.
echo
pause
if not exist patch.com goto HELP0
:BC
if not exist bc.exe goto HELP1
patch patbc bc.exe > nul
if ERRORLEVEL 1 goto BC2
goto BCC
:BC2
patch patbc2 bc.exe > nul
if ERRORLEVEL 1 goto BC3
goto BCC
:BC3
echo BC.EXE is incorrect version or is already patched
:BCC
if not exist bcc.exe goto HELP2
patch patbcc bcc.exe
if ERRORLEVEL 1 echo (in file BCC.EXE)
:TCW
if not exist tcw.exe goto HELP3
patch pattcw tcw.exe > nul
if ERRORLEVEL 1 goto TCW2
goto DONE
:TCW2
patch pattcw2 tcw.exe > nul
if ERRORLEVEL 1 goto TCW3
goto DONE
:TCW3
echo TCW.EXE is incorrect version or is already patched
goto DONE
:HELP0
echo
echo ERROR: unable to find PATCH.COM. Aborting batch file!
echo
goto DONE:
:HELP1
echo
echo WARNING: unable to find BC.EXE
echo
goto BCC
:HELP2
echo
echo WARNING: unable to find BCC.EXE
echo
goto TCW
:HELP3
echo
echo WARNING: unable to find TCW.EXE
echo
:DONE